import QtQuick 2.4

import QtQuick.Layouts 1.1
import QtQuick.Controls 1.4
import Qt.labs.controls 1.0
import QtQml.Models 2.2
import "../js/ExamProgressNavigator.qml.js" as Jit
import "../template" as Tm

Tm.Navigator {
    id: nav
    title: "考试进度"
    Component.onCompleted: Jit.query()
    ColumnLayout {
        id: col
        anchors.margins: 9

        Tm.CalendarWindow {
            id: calender
            property TextField textInput
            onClicked: Jit.finished()
        }

        GridLayout {
            columns: 3

            Label {
                text: "科目一"
            }
            TextField {
                id: tf1
            }
            ToolButton {
                label: Image {
                    anchors.centerIn: parent
                    source: "../images/calendar.png"
                }
            onClicked: Jit.clicked(tf1)
            }
            ///  k2
            Label {
                text: "科目二"
            }
            TextField {
                id: tf2
            }
            ToolButton {
                label: Image {
                    anchors.centerIn: parent
                    source: "../images/calendar.png"
                }
                 onClicked: Jit.clicked(tf2)
            }

            // k3
            Label {
                text: "科目三"
            }
            TextField {
                id: tf3

            }
            ToolButton {
                label: Image {
                    anchors.centerIn: parent
                    source: "../images/calendar.png"
                }
                 onClicked: Jit.clicked(tf3)
            }

            // k4
            Label {
                text: "科目四"
            }
            TextField {
                id: tf4
            }
            ToolButton {
                label: Image {
                        anchors.centerIn: parent
                        source: "../images/calendar.png"
                }
                onClicked: Jit.clicked(tf4)
            }

        }

    }
}
